import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { PureComponent } from "react";
export default function DevBigWordLoading(WrappedComponent) {
    return class extends PureComponent {
        defaultConfig = {
            width: "60",
            height: "60",
        };
        render() {
            let props = {
                ...this.defaultConfig,
                ...this.props,
            };
            return (_jsx("div", { style: { display: "flex", alignItems: "center" }, children: this.props.visible ? (this.props.text ? (_jsx("span", { style: {
                        fontSize: "24px",
                        marginLeft: "3px",
                        color: "rgba(79, 45, 128, 1)",
                    }, children: this.props.title })) : (_jsxs(_Fragment, { children: [_jsx(WrappedComponent, { ...props }), this.props.visible ? (_jsx("span", { style: {
                                fontSize: "24px",
                                marginLeft: "3px",
                                color: "rgba(79, 45, 128, 1)",
                            }, children: this.props.title })) : ("")] }))) : ("") }));
        }
    };
}
